import axios from '../axios'

/* 
 * 系统登录模块
 */

// 登录
export const login = data => {
    return axios({
        url: 'login',
        method: 'post',
        data
    })
}

// 登出
export const logout = () => {
    return axios({
        url: '/logout',
        method: 'get'
    })
}
// 注册
export const register = (data) => {
  return axios({
    url: '/register',
    method: 'post',
    data
  })
}
// 手机验证码
export const regSendMsg = (data) => {
  return axios({
    url: '/regSendMsg',
    method: 'post',
    data
  })
}
